<?php
/* @var $this yii\web\View */
/*use yii\helpers\Html;
use Yii;*/

use yii\helpers\Html;
use yii\helpers\Url;
$appAsset = new \backend\assets\AppAsset();
$appAsset->register($this);
$this->title = '后台 - 登录';
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>" class="bg-dark">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">


    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/public/js/ie/html5shiv.js" cache="false"></script>
    <script src="/public/js/ie/respond.min.js" cache="false"></script>
    <script src="/public/js/ie/excanvas.js" cache="false"></script>
    <![endif]-->
    <meta charset="<?= Yii::$app->charset ?>" />
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
    <?= Html::csrfMetaTags() ?>
</head>
<body>
<?php $this->beginBody() ?>
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="login-panel panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">请登录</h3>
                </div>
                <div class="panel-body">
                    <form role="form" action="<?= Url::toRoute(['login/index'])?>" class="ajax-submit" method="post">
                        <fieldset>
                            <div class="form-group">
                                <input class="form-control" placeholder="账户" name="account" type="text" autofocus>
                            </div>
                            <div class="form-group">
                                <input class="form-control" placeholder="密码" name="pass" type="password" value="">
                            </div>
                            <input type="hidden" name="<?=Yii::$app->request->csrfParam?>" value="<?=Yii::$app->request->csrfToken?>">
                            <button type="submit" class="btn btn-lg btn-success btn-block">登录</button>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div><!-- footer -->
<footer id="footer">
    <div class="text-center padder">
        <p>
            <small>admin base on Yii2<br> &copy; 2017</small>
        </p>
    </div>
</footer>
<!-- / footer -->

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>